<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Qwt User&#39;s Guide: qwt_event_pattern.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.1.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('qwt__event__pattern_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qwt_event_pattern.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -*- mode: C++ ; c-file-style: &quot;stroustrup&quot; -*- *****************************</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Qwt Widget Library</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 1997   Josef Wilgen</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * This library is free software; you can redistribute it and/or</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *****************************************************************************/</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#ifndef QWT_EVENT_PATTERN</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#define QWT_EVENT_PATTERN 1</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;qwt_global.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;qnamespace.h&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;qvector.h&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">class </span>QMouseEvent;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="keyword">class </span>QKeyEvent;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html">   29</a></span>&#160;<span class="keyword">class </span>QWT_EXPORT <a class="code" href="class_qwt_event_pattern.html">QwtEventPattern</a></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1ea">   44</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1ea">MousePatternCode</a></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    {</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaa5875976eba018ca30eb30ba92986d270">   53</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaa5875976eba018ca30eb30ba92986d270">MouseSelect1</a>,</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaac4185682db6cfd9c59955eb4cf052fd1">   62</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaac4185682db6cfd9c59955eb4cf052fd1">MouseSelect2</a>,</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaaa52e3aa1f4f6e57e22ffe9208f0dd1e3">   71</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaaa52e3aa1f4f6e57e22ffe9208f0dd1e3">MouseSelect3</a>,</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaa7cf49ee566862c3778e3d47096138f3b">   80</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaa7cf49ee566862c3778e3d47096138f3b">MouseSelect4</a>,</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaac735f981781895836d0d9475ac3cae87">   89</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaac735f981781895836d0d9475ac3cae87">MouseSelect5</a>,</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaaf8f83e3d9c9a5d639a4290c6b124ddd9">   98</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaaf8f83e3d9c9a5d639a4290c6b124ddd9">MouseSelect6</a>,</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaa01bd637c7b7c0fbb80c013f8a935e562">  101</a></span>&#160;        MousePatternCount</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    };</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007">  111</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007">KeyPatternCode</a></div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    {</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a32afc68b8e31079c00666a251d0b9c25">  114</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a32afc68b8e31079c00666a251d0b9c25">KeySelect1</a>,</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007acfd4f64d5b3b29214e51afcc56ea7eaf">  117</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007acfd4f64d5b3b29214e51afcc56ea7eaf">KeySelect2</a>,</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a5b73ad3186285f5aaf2030a50a3fb5a4">  120</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a5b73ad3186285f5aaf2030a50a3fb5a4">KeyAbort</a>,</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007abaf3cd86d773c8e47a2c670b65d6ec95">  123</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007abaf3cd86d773c8e47a2c670b65d6ec95">KeyLeft</a>,</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a607bbbf235ba79f6e36a25c6d7d27c53">  126</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a607bbbf235ba79f6e36a25c6d7d27c53">KeyRight</a>,</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a010af73c06629f6c53daf69fad5b6efe">  129</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a010af73c06629f6c53daf69fad5b6efe">KeyUp</a>,</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a00c2d782ca962ee6bcda1c4a3649d1e7">  132</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a00c2d782ca962ee6bcda1c4a3649d1e7">KeyDown</a>,</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a2c8d72876cd9435ee018e9cf8fa2ff26">  135</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a2c8d72876cd9435ee018e9cf8fa2ff26">KeyRedo</a>,</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a76cf851373169fbc588109c1eccca33a">  138</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a76cf851373169fbc588109c1eccca33a">KeyUndo</a>,</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a4cba7de2850f874988cbaa38a236ecb2">  141</a></span>&#160;        <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a4cba7de2850f874988cbaa38a236ecb2">KeyHome</a>,</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007aca9b018d7ae0f2342779e91df7ddcdd3">  144</a></span>&#160;        KeyPatternCount</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    };</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern_1_1_mouse_pattern.html">  148</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html">MousePattern</a></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    {</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern_1_1_mouse_pattern.html#a4233e9620cdad92c498a5271cd32bcf6">  152</a></span>&#160;        <a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html#a4233e9620cdad92c498a5271cd32bcf6">MousePattern</a>( Qt::MouseButton btn = Qt::NoButton, </div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;                Qt::KeyboardModifiers modifierCodes = Qt::NoModifier ):</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;            button( btn ),</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            modifiers( modifierCodes )</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        {</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        }</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern_1_1_mouse_pattern.html#ade5b5bdb3bf76814f003c02ea11c5924">  160</a></span>&#160;        Qt::MouseButton <a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html#ade5b5bdb3bf76814f003c02ea11c5924">button</a>;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern_1_1_mouse_pattern.html#ad12c724aac7bba9f16540c604dc108f9">  163</a></span>&#160;        Qt::KeyboardModifiers <a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html#ad12c724aac7bba9f16540c604dc108f9">modifiers</a>;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    };</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern_1_1_key_pattern.html">  167</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html">KeyPattern</a></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    {</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern_1_1_key_pattern.html#ac52d2d39d519c750194462c8da4c8ec2">  171</a></span>&#160;        <a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html#ac52d2d39d519c750194462c8da4c8ec2">KeyPattern</a>( <span class="keywordtype">int</span> keyCode = Qt::Key_unknown, </div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                Qt::KeyboardModifiers modifierCodes = Qt::NoModifier ):</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            key( keyCode ),</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;            modifiers( modifierCodes )</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;        {</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        }</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern_1_1_key_pattern.html#af13072b058c3abbb591450b82f049dd6">  179</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html#af13072b058c3abbb591450b82f049dd6">key</a>;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="class_qwt_event_pattern_1_1_key_pattern.html#a1db88ed291d4ba49fa84e32e86fa10d1">  182</a></span>&#160;        Qt::KeyboardModifiers <a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html#a1db88ed291d4ba49fa84e32e86fa10d1">modifiers</a>;</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    };</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <a class="code" href="class_qwt_event_pattern.html">QwtEventPattern</a>();</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="class_qwt_event_pattern.html">QwtEventPattern</a>();</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keywordtype">void</span> initMousePattern( <span class="keywordtype">int</span> numButtons );</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="keywordtype">void</span> initKeyPattern();</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keywordtype">void</span> setMousePattern( <a class="code" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1ea">MousePatternCode</a>, Qt::MouseButton button, </div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;        Qt::KeyboardModifiers = Qt::NoModifier );</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keywordtype">void</span> setKeyPattern( <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007">KeyPatternCode</a>, <span class="keywordtype">int</span> keyCode, </div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        Qt::KeyboardModifiers modifierCodes = Qt::NoModifier );</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keywordtype">void</span> setMousePattern( <span class="keyword">const</span> QVector&lt;MousePattern&gt; &amp; );</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    <span class="keywordtype">void</span> setKeyPattern( <span class="keyword">const</span> QVector&lt;KeyPattern&gt; &amp; );</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="keyword">const</span> QVector&lt;MousePattern&gt; &amp;mousePattern() <span class="keyword">const</span>;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="keyword">const</span> QVector&lt;KeyPattern&gt; &amp;keyPattern() <span class="keyword">const</span>;</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    QVector&lt;MousePattern&gt; &amp;mousePattern();</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    QVector&lt;KeyPattern&gt; &amp;keyPattern();</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <span class="keywordtype">bool</span> mouseMatch( <a class="code" href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1ea">MousePatternCode</a>, <span class="keyword">const</span> QMouseEvent * ) <span class="keyword">const</span>;</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="keywordtype">bool</span> keyMatch( <a class="code" href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007">KeyPatternCode</a>, <span class="keyword">const</span> QKeyEvent * ) <span class="keyword">const</span>;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> mouseMatch( <span class="keyword">const</span> <a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html">MousePattern</a> &amp;, <span class="keyword">const</span> QMouseEvent * ) <span class="keyword">const</span>;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> keyMatch( <span class="keyword">const</span> <a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html">KeyPattern</a> &amp;, <span class="keyword">const</span> QKeyEvent * ) <span class="keyword">const</span>;</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;<span class="preprocessor">#if defined(_MSC_VER)</span></div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<span class="preprocessor">#pragma warning(push)</span></div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;<span class="preprocessor">#pragma warning(disable: 4251)</span></div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    QVector&lt;MousePattern&gt; d_mousePattern;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    QVector&lt;KeyPattern&gt; d_keyPattern;</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="preprocessor">#if defined(_MSC_VER)</span></div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;<span class="preprocessor">#pragma warning(pop)</span></div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;};</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==( <a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html">QwtEventPattern::MousePattern</a> b1,</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html">QwtEventPattern::MousePattern</a>  b2 )</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;{</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    <span class="keywordflow">return</span> b1.<a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html#ade5b5bdb3bf76814f003c02ea11c5924">button</a> == b2.<a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html#ade5b5bdb3bf76814f003c02ea11c5924">button</a> &amp;&amp; b1.<a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html#ad12c724aac7bba9f16540c604dc108f9">modifiers</a> == b2.<a class="code" href="class_qwt_event_pattern_1_1_mouse_pattern.html#ad12c724aac7bba9f16540c604dc108f9">modifiers</a>;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;}</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;<span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==( <a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html">QwtEventPattern::KeyPattern</a> b1,</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;   <a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html">QwtEventPattern::KeyPattern</a>  b2 )</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;{</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="keywordflow">return</span> b1.<a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html#af13072b058c3abbb591450b82f049dd6">key</a> == b2.<a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html#af13072b058c3abbb591450b82f049dd6">key</a> &amp;&amp; b1.<a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html#a1db88ed291d4ba49fa84e32e86fa10d1">modifiers</a> == b2.<a class="code" href="class_qwt_event_pattern_1_1_key_pattern.html#a1db88ed291d4ba49fa84e32e86fa10d1">modifiers</a>;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;}</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="class_qwt_event_pattern_html_af48dc808ac5e125eeed41a4c0285d1eaa5875976eba018ca30eb30ba92986d270"><div class="ttname"><a href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaa5875976eba018ca30eb30ba92986d270">QwtEventPattern::MouseSelect1</a></div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:53</div></div>
<div class="ttc" id="class_qwt_event_pattern_1_1_key_pattern_html"><div class="ttname"><a href="class_qwt_event_pattern_1_1_key_pattern.html">QwtEventPattern::KeyPattern</a></div><div class="ttdoc">A pattern for key events. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:167</div></div>
<div class="ttc" id="class_qwt_event_pattern_1_1_mouse_pattern_html_a4233e9620cdad92c498a5271cd32bcf6"><div class="ttname"><a href="class_qwt_event_pattern_1_1_mouse_pattern.html#a4233e9620cdad92c498a5271cd32bcf6">QwtEventPattern::MousePattern::MousePattern</a></div><div class="ttdeci">MousePattern(Qt::MouseButton btn=Qt::NoButton, Qt::KeyboardModifiers modifierCodes=Qt::NoModifier)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:152</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007a32afc68b8e31079c00666a251d0b9c25"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a32afc68b8e31079c00666a251d0b9c25">QwtEventPattern::KeySelect1</a></div><div class="ttdoc">Qt::Key_Return. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:114</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007a00c2d782ca962ee6bcda1c4a3649d1e7"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a00c2d782ca962ee6bcda1c4a3649d1e7">QwtEventPattern::KeyDown</a></div><div class="ttdoc">Qt::Key_Down. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:132</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007acfd4f64d5b3b29214e51afcc56ea7eaf"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007acfd4f64d5b3b29214e51afcc56ea7eaf">QwtEventPattern::KeySelect2</a></div><div class="ttdoc">Qt::Key_Space. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:117</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_af48dc808ac5e125eeed41a4c0285d1ea"><div class="ttname"><a href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1ea">QwtEventPattern::MousePatternCode</a></div><div class="ttdeci">MousePatternCode</div><div class="ttdoc">Symbolic mouse input codes. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:44</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_af48dc808ac5e125eeed41a4c0285d1eaac4185682db6cfd9c59955eb4cf052fd1"><div class="ttname"><a href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaac4185682db6cfd9c59955eb4cf052fd1">QwtEventPattern::MouseSelect2</a></div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:62</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007a4cba7de2850f874988cbaa38a236ecb2"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a4cba7de2850f874988cbaa38a236ecb2">QwtEventPattern::KeyHome</a></div><div class="ttdoc">Qt::Key_Escape. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:141</div></div>
<div class="ttc" id="class_qwt_event_pattern_1_1_mouse_pattern_html_ad12c724aac7bba9f16540c604dc108f9"><div class="ttname"><a href="class_qwt_event_pattern_1_1_mouse_pattern.html#ad12c724aac7bba9f16540c604dc108f9">QwtEventPattern::MousePattern::modifiers</a></div><div class="ttdeci">Qt::KeyboardModifiers modifiers</div><div class="ttdoc">Keyboard modifier. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:163</div></div>
<div class="ttc" id="class_qwt_event_pattern_html"><div class="ttname"><a href="class_qwt_event_pattern.html">QwtEventPattern</a></div><div class="ttdoc">A collection of event patterns. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:29</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007a5b73ad3186285f5aaf2030a50a3fb5a4"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a5b73ad3186285f5aaf2030a50a3fb5a4">QwtEventPattern::KeyAbort</a></div><div class="ttdoc">Qt::Key_Escape. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:120</div></div>
<div class="ttc" id="class_qwt_event_pattern_1_1_key_pattern_html_a1db88ed291d4ba49fa84e32e86fa10d1"><div class="ttname"><a href="class_qwt_event_pattern_1_1_key_pattern.html#a1db88ed291d4ba49fa84e32e86fa10d1">QwtEventPattern::KeyPattern::modifiers</a></div><div class="ttdeci">Qt::KeyboardModifiers modifiers</div><div class="ttdoc">Modifiers. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:182</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007a010af73c06629f6c53daf69fad5b6efe"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a010af73c06629f6c53daf69fad5b6efe">QwtEventPattern::KeyUp</a></div><div class="ttdoc">Qt::Key_Up. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:129</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007abaf3cd86d773c8e47a2c670b65d6ec95"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007abaf3cd86d773c8e47a2c670b65d6ec95">QwtEventPattern::KeyLeft</a></div><div class="ttdoc">Qt::Key_Left. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:123</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007a76cf851373169fbc588109c1eccca33a"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a76cf851373169fbc588109c1eccca33a">QwtEventPattern::KeyUndo</a></div><div class="ttdoc">Qt::Key_Minus. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:138</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007a607bbbf235ba79f6e36a25c6d7d27c53"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a607bbbf235ba79f6e36a25c6d7d27c53">QwtEventPattern::KeyRight</a></div><div class="ttdoc">Qt::Key_Right. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:126</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_af48dc808ac5e125eeed41a4c0285d1eaa7cf49ee566862c3778e3d47096138f3b"><div class="ttname"><a href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaa7cf49ee566862c3778e3d47096138f3b">QwtEventPattern::MouseSelect4</a></div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:80</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007a2c8d72876cd9435ee018e9cf8fa2ff26"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007a2c8d72876cd9435ee018e9cf8fa2ff26">QwtEventPattern::KeyRedo</a></div><div class="ttdoc">Qt::Key_Plus. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:135</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_a8fb57ceb9982d5583a1bf568e37d3007"><div class="ttname"><a href="class_qwt_event_pattern.html#a8fb57ceb9982d5583a1bf568e37d3007">QwtEventPattern::KeyPatternCode</a></div><div class="ttdeci">KeyPatternCode</div><div class="ttdoc">Symbolic keyboard input codes. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:111</div></div>
<div class="ttc" id="class_qwt_event_pattern_1_1_mouse_pattern_html"><div class="ttname"><a href="class_qwt_event_pattern_1_1_mouse_pattern.html">QwtEventPattern::MousePattern</a></div><div class="ttdoc">A pattern for mouse events. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:148</div></div>
<div class="ttc" id="class_qwt_event_pattern_1_1_mouse_pattern_html_ade5b5bdb3bf76814f003c02ea11c5924"><div class="ttname"><a href="class_qwt_event_pattern_1_1_mouse_pattern.html#ade5b5bdb3bf76814f003c02ea11c5924">QwtEventPattern::MousePattern::button</a></div><div class="ttdeci">Qt::MouseButton button</div><div class="ttdoc">Button. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:160</div></div>
<div class="ttc" id="class_qwt_event_pattern_1_1_key_pattern_html_ac52d2d39d519c750194462c8da4c8ec2"><div class="ttname"><a href="class_qwt_event_pattern_1_1_key_pattern.html#ac52d2d39d519c750194462c8da4c8ec2">QwtEventPattern::KeyPattern::KeyPattern</a></div><div class="ttdeci">KeyPattern(int keyCode=Qt::Key_unknown, Qt::KeyboardModifiers modifierCodes=Qt::NoModifier)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:171</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_af48dc808ac5e125eeed41a4c0285d1eaaa52e3aa1f4f6e57e22ffe9208f0dd1e3"><div class="ttname"><a href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaaa52e3aa1f4f6e57e22ffe9208f0dd1e3">QwtEventPattern::MouseSelect3</a></div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:71</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_af48dc808ac5e125eeed41a4c0285d1eaac735f981781895836d0d9475ac3cae87"><div class="ttname"><a href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaac735f981781895836d0d9475ac3cae87">QwtEventPattern::MouseSelect5</a></div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:89</div></div>
<div class="ttc" id="class_qwt_event_pattern_html_af48dc808ac5e125eeed41a4c0285d1eaaf8f83e3d9c9a5d639a4290c6b124ddd9"><div class="ttname"><a href="class_qwt_event_pattern.html#af48dc808ac5e125eeed41a4c0285d1eaaf8f83e3d9c9a5d639a4290c6b124ddd9">QwtEventPattern::MouseSelect6</a></div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:98</div></div>
<div class="ttc" id="class_qwt_event_pattern_1_1_key_pattern_html_af13072b058c3abbb591450b82f049dd6"><div class="ttname"><a href="class_qwt_event_pattern_1_1_key_pattern.html#af13072b058c3abbb591450b82f049dd6">QwtEventPattern::KeyPattern::key</a></div><div class="ttdeci">int key</div><div class="ttdoc">Key code. </div><div class="ttdef"><b>Definition:</b> qwt_event_pattern.h:179</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>qwt_event_pattern.h</b></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
